Skip to content

Fix Toolbar styling to be self-contained without PrimeReact theme dependency#8

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/fix-toolbar-styling
Draft

Fix Toolbar styling to be self-contained without PrimeReact theme dependency#8
Copilot wants to merge 2 commits intomainfrom
copilot/fix-toolbar-styling

Conversation

Copy link
Contributor

Copilot AI commented Feb 27, 2026

Toolbar visual styles were driven entirely by PrimeReact CSS variables (--surface-card, --surface-border, --text-color-secondary, etc.). Without the lara-dark-blue theme, these resolve to nothing — the container becomes invisible and buttons lose all color treatment.

Fixed

  • Replaced all CSS-variable-based styles on the Toolbar container, buttons, and fan-out panel with hardcoded Tailwind utility classes (bg-gray-800, border-white/10, text-gray-400, hover:bg-gray-700, bg-blue-600, etc.) so the component renders consistently regardless of the consumer's PrimeReact theme setup
  • Toolbar.css retains only animation/transition rules that cannot be expressed as Tailwind utilities (section morphing, fan-out clip-path reveal); all color declarations now use hardcoded values matching bg-gray-800 / border-white/10
  • Moved Toolbar.css import from Toolbar.tsx to ToolbarSection.tsx and ToolbarFanOutItem.tsx — the only components that still depend on it
Original prompt

This section details on the original issue you should resolve

<issue_title>Toolbar styling</issue_title>
<issue_description>We should fix how the styling is done for the toolbar so that consumers will have a consistent experience with what they're seeing in the Storybook stories.

This is how it looks out of the box in an application:
Image

While when looking at story in Storybook for the toolbar, it looks like this:
Image</issue_description>

Comments on the Issue (you are @copilot in this section)


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

…ailwind classes

The Toolbar component previously relied on PrimeReact CSS variables
(--surface-card, --surface-border, --text-color-secondary, etc.) from
the lara-dark-blue theme. Consumers using a different theme or no
PrimeReact theme would see an invisible container (transparent background,
no border).

Replace all CSS variable-based styles with hardcoded Tailwind utility
classes (bg-gray-800, border-white/10, text-gray-400, etc.) so the
toolbar renders consistently regardless of the consumer's theme setup.

Co-authored-by: einari <134365+einari@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix toolbar styling for consistent consumer experience Fix Toolbar styling to be self-contained without PrimeReact theme dependency Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Toolbar styling

2 participants